<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body">
            
        <table class="layui-table" style="margin: 10px;">
            <colgroup>
                <col width="150">
                <col width="150">
                <col width="150">
            </colgroup>
            <thead>
                <tr>
                    <th class="text-center">主体名称</th>
                    <th class="text-center">姓名</th>
                    <th class="text-center">完成件数</th>
                    <th class="text-center">单价</th>
                </tr>
            </thead>
            <tbody>
                {foreach $data as $k=>$v} 
                <tr>
                    <td class='text-center'>
                        {$v.body_name|default='-'}
                    </td>
                    <td class='text-center'>
                        {$v.name}
                    </td>
                    <td class='text-center'>
                        {$v.complete_count}
                    </td>
                    <td class='text-center'>
                        {$v.price}
                    </td>
                </tr>
                {/foreach}
                <tr>
                    <td class='text-center'>
                        
                    </td>
                    <td class='text-center'>
                        
                    </td>
                    <td class='text-center'>
                        总件数：{$sum}
                    </td>
                    <td class='text-center'>
                        总金额：{$sum_price}
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    
    <div class="hr-line-dashed"></div>

    <div class="layui-form-item text-center">
        <button class="layui-btn layui-btn-danger" type='button' data-close>取消</button>
    </div>

    <script>
    window.form.render();
    </script>

</form>